<template>
  <el-config-provider :locale="locale">
    <router-view v-slot="{ Component }">
      <keep-alive>
        <component :is="Component"  v-if="$route.meta.keepAlive"/>
      </keep-alive>
      <component :is="Component"  v-if="!$route.meta.keepAlive"/>
    </router-view>
  </el-config-provider>
  
</template>
<script lang="ts">
import zhCn from 'element-plus/lib/locale/lang/zh-cn';
import { defineComponent } from 'vue';
export default defineComponent({
  setup(){
    return {
      locale:zhCn
    }
  }
})

</script>

<style lang="scss">
*{
  margin: 0;
  padding: 0;
}
#app{
  min-width: 1366px;
}
#app, body, html {
  width: 100%;
  height: 100%;
}
</style>
